package db

import (
	log "github.com/sirupsen/logrus"
	"src/db/db_modle"
)

// 获取分数标准
func GetScoreStandard(id uint) db_modle.RiskScoreStandard {
	orm := GetMysqlOrm()
	defer orm.Close()
	var score db_modle.RiskScoreStandard
	result := orm.Where("id = ?", id).Find(&score)
	if e := result.Error; e != nil {
		log.Error(e.Error())
		return db_modle.RiskScoreStandard{}
	}
	return score
}
